export default (state = { count: 0 }, action: any) => {
    switch (action.type) {
        case 'demo':
            return { count: state.count + 1 };
        case 'va':
            return { count: state.count - 1 };
        default:
            return state;
    }
}